<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<jsp:include page="../fragments/header.jsp">
	<jsp:param name="title" value="Login" />
</jsp:include>

<p>Login with Username and Password</p>

<c:if test="${not empty error}">
	<div class="errorblock">
		Your login attempt was not successful, try again.<br /> Cause:
		${sessionScope.SPRING_SECURITY_LAST_EXCEPTION.message}
	</div>
</c:if>

<form class="form-horizontal" action="j_spring_security_check" method="POST">
	<div class="form-group">
		<label for="username" class="control-label"><b>Username</b></label>
		<input type="text" class="form-control" id="username" name="j_username">
	</div>
	<div class="form-group">
		<label for="pass" class="control-label"><b>Password</b></label>
		<input type="password" class="form-control" id="pass" name="j_password">
	</div>
	<button type="submit" class="btn btn-default"><b>Login</b></button>
</form>

<jsp:include page="../fragments/footer.jsp" />